from pspy.gae.actiondomain import PspyAction

class GHTAction(PspyAction):
    '''
    Base class for actions in 
    YCH Application.
    '''

    def __init__(self,req):
        '''
        Constructor
        '''
        PspyAction.__init__(self, req)
        
        # ensure existence of flashMsg
        req.setAttribute("flashMsg",req.getParameter('flashMsg',''))
        #allow chunks and full page loads
        req.setAttribute("chunk",req.getParameter('chunk',''))